//
//  LoginTools.h
//  Project_IOS
//
//  Created by Jeff on 2022/1/10.
//

#import <Foundation/Foundation.h>
#import "LoginUserModel.h"
#import "LoginViewController.h"
#import "RegiestViewController.h"


NS_ASSUME_NONNULL_BEGIN

@interface LoginTools : NSObject

+ (void)login:(NSString *)account pwd:(NSString *)pwd success:(void(^)(void))success;

+ (void)loginOut:(void(^)(void))success;

+ (void)loginCancel:(NSString *)captcha success:(void(^)(void))success;

+ (void)loginBind:(NSString *)mobile captcha:(NSString *)captcha pwd:(NSString *)pwd success:(void(^)(void))success;

+ (void)logoutSuccess;

+ (void)logcancelSuccess;

+ (void)logPwdResetSuccess;

+ (BOOL)isLogin;

+ (void)loginSuccess:(NSDictionary *)dic;

+ (LoginUserModel *)currentLoginUser;

+ (void)goLogin:(UIViewController *)currentVC nextVC:(nullable UIViewController *)nextVC;

+ (void)goLogin:(UIViewController *)currentVC callback:(void(^)(BOOL))callback;

+ (LoginViewController *)creatLoginVC;

+ (RegiestViewController *)creatRegistVC;

+ (void)requestForInit;

+ (BOOL)iSFirstLaunch;
+ (void)invalideFirstLaunch;

+ (void)fastLogin:(void(^)(void))success;

+(NSString*)getDeviceIDInKeychain;
+ (NSString *)getUUID;
@end

NS_ASSUME_NONNULL_END
